﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TravelingWebApp.Models
{
    public class Guide
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string Id { get; set; }

        [Display(Name = "姓名")]
        [StringLength(20, MinimumLength = 3)]
        public string Name { get; set; }

        [Display(Name = "年龄")]
        [Range(12, 100)]
        public int Age { get; set; }

        //[NotMapped]
        //public IFormFile PhotoAvatar { get; set; }
        //public string ImageName { get; set; }
        //public byte[] PhotoFile { get; set; }
        //public string ImageMimeType { get; set; }

        public string Breifing { get; set; }
        public string PhoneNumber { get; set; }
    }
}
